<template>
  <section id="hero">
    <button @click="openChrome">openChrome</button>
    <br>
    <button @click="login">login</button>
  </section>
</template>
<script setup>
import { ipcApiRoute } from '@/api/index';
import { ipc, isEE } from "@/utils/ipcRenderer";

const openChrome = async () => {
  ipc.send(ipcApiRoute.openChrome)
}
const login = async () => {
  const result = await ipc.invoke(ipcApiRoute.login,{
    userName:"0000001521", password:"152111.."
  })
  debugger;
  console.log(result)
}
console.log("hello")
</script>
<style scoped>

</style>
  